﻿namespace DotRas
{
    using System;
    using System.Net;

    [Serializable]
    public sealed class RasIPInfo
    {
        private int _errorCode;
        private System.Net.IPAddress _ipAddress;
        private RasIPOptions _options;
        private System.Net.IPAddress _serverIPAddress;
        private RasIPOptions _serverOptions;

        internal RasIPInfo(int errorCode, System.Net.IPAddress ipAddress, System.Net.IPAddress serverIPAddress, RasIPOptions options, RasIPOptions serverOptions)
        {
            this._errorCode = errorCode;
            this._ipAddress = ipAddress;
            this._serverIPAddress = serverIPAddress;
            this._options = options;
            this._serverOptions = serverOptions;
        }

        public int ErrorCode
        {
            get
            {
                return this._errorCode;
            }
        }

        public System.Net.IPAddress IPAddress
        {
            get
            {
                return this._ipAddress;
            }
        }

        public RasIPOptions Options
        {
            get
            {
                return this._options;
            }
        }

        public System.Net.IPAddress ServerIPAddress
        {
            get
            {
                return this._serverIPAddress;
            }
        }

        public RasIPOptions ServerOptions
        {
            get
            {
                return this._serverOptions;
            }
        }
    }
}

